<?php if(!defined('BASEPATH')) exit ('No direct script access allowed');
class C_singleproduct extends CI_Controller{
	function __construct(){
		parent::__construct();
		$this->load->model('m_singleproduct');
	}
	function index(){
		$product_id = isset($_POST['product_id']) ? @$_POST['product_id'] : @$_GET['product_id'];
		$data['data_product'] = $this->m_singleproduct->get_detailproduct($product_id);
		$this->load->view('main/v_singleproduct', $data);
	}
}
?>